package net.lab1024.sa.admin.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

//@Configuration
public class AppConfig {

    //    @Bean
    public RestTemplate restTemplate() {
        // 配置超时等参数
        return new RestTemplate();

        // 如果需要更详细的配置：
        /*
        return new RestTemplateBuilder()
                .setConnectTimeout(Duration.ofSeconds(30))
                .setReadTimeout(Duration.ofSeconds(60))
                .build();
        */
    }
}